<%@page import="org.middlewaregr.bp.StaticProcessEngine"%>
<%@page import="org.jbpm.api.ExecutionService"%>
<%@page import="org.jbpm.api.RepositoryService"%>
<%@page import="org.jbpm.api.TaskService"%>
<%@page import="java.util.*"%>
<%@page import="org.jbpm.api.task.Task"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Set"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%= session.getAttribute("title") %></title>
</head>
<body style="height: 100%; width: 100%;">
<div style="background-color: #CFFFFE; width: 100%; height: 100%; padding: 5px;">
<table>
	<tr>
		<td><a style="color: blue;" href="Login.jsp">Login</a></td>
		<% if (session.getAttribute("username") != null) { %>
			<% if (session.getAttribute("role").equals("student")) { %>
				<td><a style="color: blue;" href="CreateProposalPage.jsp">Create Proposal</a></td>
				<td><a style="color: blue;" href="UploadThesisPage.jsp">Upload Thesis</a></td>
			<% } %>
			<% if (session.getAttribute("role").equals("teacher")) { %> 
				<td><a style="color: blue;" href="ProposalApprovalPage.jsp">Proposal Approve</a></td>
			<% } %>
			<% if (session.getAttribute("role").equals("reviewer")) { %> 
				<td><a style="color: blue;" href="ReviewThesisPage.jsp">Review Thesis</a></td>
			<% } %>
		<td><i>Logged in as: <b><%= session.getAttribute("username") %></b> (<%= session.getAttribute("role") %>) </i></td>
		<% } %>
	</tr>
</table>